package com.irdstudio.basic.sequence.service.facade;

import java.util.List;

/**
 * 获取sequence服务
 * @author Cytus_
 * @version 1.0
 * @since 2018-05-05 14:10:11
 */
public interface SequenceService {
	
	/**
	 * 通过seqid获取sequnce
	 * @param seqId 流水号id
	 * @param orgCode 机构代码
	 * @param prdCode 产品代码
	 * @return
	 * @throws Exception
	 */
	public String getSequence(String seqId, String orgCode, String prdCode) throws Exception;
	
	/**
	 * 通过seqid获取sequnce
	 * @param seqId
	 * @param orgCode
	 * @param prdCode
	 * @param legalCode
	 * @param areaCode
	 * @return
	 * @throws Exception
	 */
	public String getSequence(String seqId, String orgCode, String prdCode, String legalCode, String areaCode) throws Exception;
	
	
	/**
	 * 通过sqlid批量获取sequence
	 * @param seqId
	 * @param orgCode 机构代码
	 * @param prdCode 产品代码
	 * @param seqNum
	 * @return
	 * @throws Exception
	 */
	public List<String> getSequences(String seqId, String orgCode, String prdCode, Integer seqNum) throws Exception;
	
	
	/**
	 * 通过sqlid批量获取sequence
	 * @param seqId
	 * @param orgCode
	 * @param prdCode
	 * @param legalCode
	 * @param areaCode
	 * @param seqNum
	 * @return
	 * @throws Exception
	 */
	public List<String> getSequences(String seqId, String orgCode, String prdCode, String legalCode, String areaCode, Integer seqNum) throws Exception;
	
	/**
	 * 重置序列号
	 * @return
	 */
	public int resetSequence(String day);
	/**
	 * 获取默认营业日期
	 * @return
	 */
	public String getOpenday();

}
